/*
    This file is part of Raptor.

    Raptor is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    Raptor is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with Raptor.  If not, see <http://www.gnu.org/licenses/>.

 */

#ifndef IMPORTWIZARD_H
#define IMPORTWIZARD_H

#include <QWizard>
#include <QPointer>

class QLabel;
class QTextEdit;
class QLineEdit;
class QListWidget;

class verifyDataPage;

class importWizard : public QWizard
{
	Q_OBJECT

	public:

		enum { Page_SelectFile, Page_VerifyData };

		QStringList urlList;

		importWizard(QWidget *parent = 0);
		bool validateCurrentPage();

	private:
		QPointer<verifyDataPage> myVerifyDataPage;
};

class selectFilePage : public QWizardPage
{
	Q_OBJECT

	public:
		selectFilePage(QWidget *parent = 0);

		int nextId() const;

	private:
		QPointer<QLabel> topLabel;
		QPointer<QLineEdit> lineEditFileName;
		QPointer<QPushButton> pushButtonOpenFile;

	private slots:
		void slot_openFile_clicked();
};

class verifyDataPage : public QWizardPage
{
	Q_OBJECT

	public:
		verifyDataPage(QWidget *parent = 0);
		void initializePage();

		int nextId() const;
		const QPointer<QListWidget> table() const {return listWidget;}

	private:
		QPointer<QLabel> topLabel;
		QPointer<QListWidget> listWidget;
};

#endif //IMPORTWIZARD_H
